﻿<%@ page language="C#" autoeventwireup="true" inherits="PersonInfo_GiftEdit, App_Web_gs0re5hh" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="<%= ResolveUrl("~/jquery-easyui-1.2.6/themes/"+Skin+"/easyui.css") %>"
        rel="stylesheet" type="text/css" />
    <link href="../jquery-easyui-1.2.6/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../jquery-easyui-1.2.6/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../jquery-easyui-1.2.6/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../Content/js/sysEasyUI.js" type="text/javascript"></script>
    <link href="../MembershipCard/kindeditor/themes/default/default.css" rel="stylesheet"
        type="text/css" />
    <link href="../MembershipCard/kindeditor/plugins/code/prettify.css" rel="stylesheet"
        type="text/css" />
    <script src="../MembershipCard/kindeditor/kindeditor.js" type="text/javascript"></script>
    <script src="../MembershipCard/kindeditor/lang/en.js" type="text/javascript"></script>
    <script src="../MembershipCard/kindeditor/kindeditor-min.js" type="text/javascript"></script>
     <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#content1', {
                cssPath: '../MembershipCard/kindeditor/plugins/code/prettify.css',
                uploadJson: '../MembershipCard/kindeditor/upload_json.ashx',
                fileManagerJson: '../MembershipCard/kindeditor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
            //  prettyPrint();
        });
    </script>
    <style type="text/css">
        body
        {
            font-size: 12px;
        }
        .style1
        {
            width: 100%;
            border-collapse: collapse;
            border: 1px solid #E2EEF3;
        }
        .style1 tr td
        {
            border: 1px solid #E2EEF3;
        }
        
        p.p0
        {
            margin: 0pt;
            margin-bottom: 0.0001pt;
            margin-bottom: 0pt;
            margin-top: 0pt;
            text-align: justify;
            font-size: 10.5000pt;
            font-family: 'Calibri';
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#btnOK").click(btnOK);
        });
        function btnOK() {
            //var aa = $("#Button1 ");
            $("#Button1 ").click();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="">
        <table cellpadding="0" class="style1">
            <tr>
                <td style="width: 100px;">
                    原名称
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    显示名称
                </td>
                <td>
                    <asp:TextBox ID="txtExplain" runat="server" required="true" Rows="3"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    商品编号
                </td>
                <td>
                    <asp:TextBox ID="txtGiftNo" runat="server" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    图片1上传
                </td>
                <td>
                    <asp:FileUpload ID="file" runat="server" />
                    <asp:Button ID="Button2" runat="server" Text="上传" OnClick="Button2_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    图片1地址
                </td>
                <td>
                    <asp:TextBox ID="txtPicUrl" Width="300px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="tr1" visible="false">
                <td>
                    图片2上传
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                    <asp:Button ID="Button3" runat="server" Text="上传" OnClick="Button3_Click" />
                </td>
            </tr>
            <tr runat="server" id="tr2" visible="false">
                <td>
                    图片2地址
                </td>
                <td>
                    <asp:TextBox ID="txtPicUrl2" Width="300px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="tr3" visible="false">
                <td>
                    图片3上传
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload2" runat="server" />
                    <asp:Button ID="Button4" runat="server" Text="上传" OnClick="Button4_Click" />
                </td>
            </tr>
            <tr runat="server" id="tr4" visible="false">
                <td>
                    图片3地址
                </td>
                <td>
                    <asp:TextBox ID="txtPicUrl3" Width="300px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="tr5" visible="false">
                <td>
                    图片4上传
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload3" runat="server" />
                    <asp:Button ID="Button5" runat="server" Text="上传" OnClick="Button5_Click" />
                </td>
            </tr>
            <tr runat="server" id="tr6" visible="false">
                <td>
                    图片4地址
                </td>
                <td>
                    <asp:TextBox ID="txtPicUrl4" Width="300px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="tr7" visible="false">
                <td>
                    图片5上传
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload4" runat="server" />
                    <asp:Button ID="Button6" runat="server" Text="上传" OnClick="Button6_Click" />
                </td>
            </tr>
            <tr runat="server" id="tr8" visible="false">
                <td>
                    图片5地址
                </td>
                <td>
                    <asp:TextBox ID="txtPicUrl5" Width="300px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="tr9" visible="false">
                <td>
                    图片6上传
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload5" runat="server" />
                    <asp:Button ID="Button7" runat="server" Text="上传" OnClick="Button7_Click" />
                </td>
            </tr>
            <tr runat="server" id="tr10" visible="false">
                <td>
                    图片6地址
                </td>
                <td>
                    <asp:TextBox ID="txtPicUrl6" Width="300px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    兑换积分
                </td>
                <td>
                    <asp:TextBox ID="txtIntegral" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    购买价格
                </td>
                <td>
                    <asp:TextBox ID="txtPrice" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    仓库余量(非实时)
                </td>
                <td>
                    <asp:TextBox ID="txtBegin_Inv" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    兑礼库存
                </td>
                <td>
                    <asp:TextBox ID="txtREDEP_INV" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    销售库存
                </td>
                <td>
                    <asp:TextBox ID="txtSALES_INV" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    允许兑换上限
                </td>
                <td>
                    <asp:TextBox ID="txtEXCH_NUM" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    是否明星产品
                </td>
                <td>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    是否销售产品
                </td>
                <td>
                    <asp:CheckBox ID="CheckBox2" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    是否推荐产品
                </td>
                <td>
                    <asp:CheckBox ID="CheckBox3" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    是否新品
                </td>
                <td>
                    <asp:CheckBox ID="CheckBox4" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    是否展示
                </td>
                <td>
                    <asp:CheckBox ID="CheckBox5" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    是否兑礼
                </td>
                <td>
                    <asp:CheckBox ID="CheckBox6" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    所属大类
                </td>
                <td>
                    <asp:TextBox ID="txtDL" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    所属细类
                </td>
                <td>
                    <asp:TextBox ID="txtXL" runat="server" required="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    详情
                </td>
                <td>
                   <textarea id="content1" cols="40" rows="10" style="width: 95%; height: 300px; visibility: hidden;"
                        runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td>
                    图片预览
                </td>
                <td>
                    <asp:Image ID="Image1" runat="server" Height="130px" ImageUrl="~/GroupBuying/Images/default.jpg"
                        Width="190px" />
                    <asp:Image ID="Image2" runat="server" Height="130px" ImageUrl="~/GroupBuying/Images/default.jpg"
                        Width="190px" Visible="False" />
                    <asp:Image ID="Image3" runat="server" Height="130px" ImageUrl="~/GroupBuying/Images/default.jpg"
                        Width="190px" Visible="False" />
                    <asp:Image ID="Image4" runat="server" Height="130px" ImageUrl="~/GroupBuying/Images/default.jpg"
                        Width="190px" Visible="False" />
                    <asp:Image ID="Image5" runat="server" Height="130px" ImageUrl="~/GroupBuying/Images/default.jpg"
                        Width="190px" Visible="False" />
                    <asp:Image ID="Image6" runat="server" Height="130px" ImageUrl="~/GroupBuying/Images/default.jpg"
                        Width="190px" Visible="False" />
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3">
                    <a href="#" class="easyui-linkbutton" iconcls="icon-save" id="btnOK">保存</a>
                    <asp:Button ID="Button1" runat="server" Text="保存" Style="display: none;" OnClick="Button1_Click" />
                    <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" id="btnCancel" onclick="closeDialog()">
                        取消</a>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
